

<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">

    <div class="layui-card-body">

        <div class="layui-form-item">
            <label class="layui-form-label">车牌号码</label>
            <div class="layui-input-block">
                <input name="number" value='{$vo.number|default=""}'  placeholder="请输入工点名称" class="layui-input">
                <!--                <p class="help-block">选填，请填写工点描述（如：努力工作），建议字符不要太长，一般10-30个汉字</p>-->
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">里程</label>
            <div class="layui-input-block">
                <input name="mileage" value='{$vo.mileage|default=""}'  placeholder="请输入工点名称" class="layui-input">
                <!--                <p class="help-block">选填，请填写工点描述（如：努力工作），建议字符不要太长，一般10-30个汉字</p>-->
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">维修项目</label>
            <div class="layui-input-block">
                <input name="repair1" type="checkbox" value="{$privacy[$vo.repair]}" lay-skin="primary" title="机油保养" checked="" />
                <input name="repair2" type="checkbox" value="1" lay-skin="primary" title="机修"/>
                <input name="repair3" type="checkbox" value="2" lay-skin="primary" title="美容"/>
                <input name="repair4" type="checkbox" value="3" lay-skin="primary" title="变速箱保养"/>
                <!--                    disabled=""-->

            </div>

        </div>



        <div class="layui-form-item">
            <label class="layui-form-label">详细内容</label>
            <div class="layui-input-block">
                <input name="content" value='{$vo.content|default=""}'  placeholder="请输入工点名称" class="layui-input">
                <!--                <p class="help-block">选填，请填写工点描述（如：努力工作），建议字符不要太长，一般10-30个汉字</p>-->
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">图片上传</label>
            <div class="layui-input-block">
                <img src="{$vo.img}" height="40px;width:40px;" />
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">总金额</label>
            <div class="layui-input-block">
                <input name="total" value='{$vo.total|default=""}'  placeholder="请输入纬度,保留6位小数" class="layui-input">
                <!--            <p class="help-block">选填，请填写纬度</p>-->
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">付款状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="repair" title="已付款" checked="">
                <input type="radio" name="status" value="1" title="未付款" >
                <input type="radio" name="status" value="2" title="未付全款" >

<!--                disabled=""-->
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">成本</label>
            <div class="layui-input-block">
                <input name="cost" value='{$vo.cost|default=""}'  placeholder="请输入联系电话" class="layui-input">
                <!--                <p class="help-block">选填，请填写联系电话</p>-->
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input name="remarks" value='{$vo.remarks|default=""}'  placeholder="请输入备注" class="layui-input">
                <!--                <p class="help-block">选填，请填写备注</p>-->
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">Openid</label>
            <div class="layui-input-block">
                <input disabled name="app_id" value='{$vo.app_id|default=""}' class="layui-input">
                <!--                <p class="help-block">选填，请填写备注</p>-->
            </div>
        </div>

    </div>

    <div class="hr-line-dashed"></div>


    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>

</form>

{block name='script'}
<script>
    require(['jquery.autocompleter'], function () {
        layui.form.render();
        console.log(data.status);
    });


    form.on('checkbox(filter)', function(data){
        console.log(data.elem.checked); //得到checkbox原始DOM对象

    });

    form.on('layui-input-block', function(data){
        console.log(data.elem); //得到radio原始DOM对象
        console.log(data.value); //被点击的radio的value值
        console.log(data.elem.checked);
    });
</script>
{/block}
